<script>
import Header from '@/components/Header.vue';
import Aside from '@/components/Aside.vue'
export default {
  name: "AdminMain",
  components: {
    Header,
    Aside
  }
}
</script>

<template>
  <div class="home-container">
    <!-- 3 头部区域 -->
    <Header></Header>
    <!-- 页面主体区域 -->
    <el-container class="home-main-box">
      <!-- 4 左侧边栏 -->
      <Aside></Aside>
      <!-- 右侧内容主体区域 -->
      <el-main class="home-main-body">
        <!-- 5 路由占位符 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<style scoped lang="less">
.layout-header-container {
  height: 60px;
  border-bottom: 1px solid #eaeaea;
}

.layout-header-left-img {
  height: 50px;
}

.home-container {
  height: 100%;
  display: flex;
  flex-direction: column; 
  .home-main-box {
    height: 100%;
    display: flex;
    .home-main-body {
      padding: 15px;
      flex: 1;
    }
  }
}
</style>